package com.sdcs.server.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sdcs.server.daoimpl.ReplyDaoImpl;
import com.sdcs.server.model.Reply;

@Service
public class ReplyService {
	@Autowired
	private ReplyDaoImpl replyDaoImpl;

	public void save(Reply object) {
		replyDaoImpl.save(object);
	}

	public List<Reply> getMyInfo(String resource_name) {
		return replyDaoImpl.getMyInfo(resource_name);
	}

	public List<Reply> getAllReplyByHomeworkId(String uid) {
		return replyDaoImpl.getAllReplyByHomeworkId(uid);
	}

}
